<{extend name="index/header" /}>
<{block name="body"}>
    <!--[if lt IE 9]>
        <script src="__INDEX__/js/html5shiv.js"></script>
        <script src="__INDEX__/js/respond.min.js"></script>
    <![endif]-->

    <link rel="stylesheet" href="__INDEX__/css/bdstyle.css">
    <style type="text/css">
        .js .floating-labels .baidu div{
            margin:0 !important;
        }
    </style>

    <section style="width:100%;display:table">
        <div class="error-page-inner">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-sm-12">
                        <form class="cd-form floating-labels" method="post" action="<{:url('zhuanji/zhuanjiInsert')}>" enctype="multipart/form-data">
                            <fieldset>
                                <legend>编辑传记</legend>
                                <div class="icon">
                                    <label class="cd-label" for="cd-name">传记名称</label>
                                    <input class="user" type="text" name="zhuanjititle" id="cd-name" required>
                                </div>
                                <div class="icon">
                                    <h4>选择封面</h4>
                                    <input type="file" name="zhuanjiphotp" id="cd-file" >
                                </div>
                                <div class="baidu">
                                    <label class="cd-label" for="cd-textarea">传记详情</label>
                                    <!-- <textarea class="message" name="cd-textarea" id="cd-textarea" required></textarea> -->
                                    <textarea id="cd-textarea" name="zhuanjicontent" type="text/plain" style="width:100%;height:300px;margin:0 auto;">
                                    </textarea>
                                    <!-- 配置文件 -->
                                    <script type="text/javascript" src="__PUBLIC__/ueditor/ueditor.config.js"></script>
                                    <!-- 编辑器源码文件 -->
                                    <script type="text/javascript" src="__PUBLIC__/ueditor/ueditor.all.js"></script>
                                    <!--实例化编辑器-->
                                    <script type="text/Javascript">    
                                    var editor = UE.getEditor('cd-textarea',{    
                                        toolbars:[["fontfamily","forecolor","fontsize","rowspacingtop","lineheight","imagenone","imageleft","imageright","imagecenter","insertimage","simpleupload","justifyleft","justifyright","justifycenter","justifyjustify","forecolor","backcolor","bold"]],    
                                    });    
                                    </script>  
                                </div>
                                <div>
                                    <input type="submit" id="sub" value="提交">
                                </div>
                            </fieldset>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <!-- 编辑页新加1 -->
    <script type="text/javascript" src="__INDEX__/js/modernizr.js"></script>
    <script type="text/javascript" src="__INDEX__/js/bdmain.js"></script>
<{/block}>